/*
 * ArrangeWaiter.java
 *
 * Created on __DATE__, __TIME__
 */

package com.shangpintechnology.sci.machinegenerat;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JOptionPane;
import javax.swing.table.TableModel;

import com.shangpintechnology.sci.MainClass;

/**
 *
 * @author  __USER__
 */
public class ArrangeWaiter__ extends javax.swing.JDialog {

	/** Creates new form ArrangeWaiter */
	public ArrangeWaiter__(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		this.setTitle("选择接待人员：");
		initComponents();
	}

	public ArrangeWaiter__ getThis() {
		return this;
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jScrollPane1 = new javax.swing.JScrollPane();
		jTable1 = new javax.swing.JTable();
		jButton1 = new javax.swing.JButton();

		setLocationByPlatform(true);
		setResizable(false);

		jTable1.setModel(new javax.swing.table.DefaultTableModel(
				new Object[][] { { null, null, null, null },
						{ null, null, null, null }, { null, null, null, null },
						{ null, null, null, null } }, new String[] { "Title 1",
						"Title 2", "Title 3", "Title 4" }));
		jTable1
				.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
					public void propertyChange(
							java.beans.PropertyChangeEvent evt) {
						jTable1PropertyChange(evt);
					}
				});
		jScrollPane1.setViewportView(jTable1);

		jButton1.setText("\u5173\u95ed");
		jButton1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				getThis().setVisible(false);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				layout.createSequentialGroup().addContainerGap(15,
						Short.MAX_VALUE).addComponent(jScrollPane1,
						javax.swing.GroupLayout.PREFERRED_SIZE, 375,
						javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap()).addGroup(
				layout.createSequentialGroup().addGap(178, 178, 178)
						.addComponent(jButton1).addContainerGap(165,
								Short.MAX_VALUE)));
		layout.setVerticalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				layout.createSequentialGroup().addContainerGap(21,
						Short.MAX_VALUE).addComponent(jScrollPane1,
						javax.swing.GroupLayout.PREFERRED_SIZE, 231,
						javax.swing.GroupLayout.PREFERRED_SIZE).addGap(18, 18,
						18).addComponent(jButton1).addGap(13, 13, 13)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	public javax.swing.JTable getJTable1() {
		return jTable1;
	}

	public void setJTable1(javax.swing.JTable table1) {
		jTable1 = table1;
	}

	private void jTable1PropertyChange(java.beans.PropertyChangeEvent evt) {
		// TODO add your handling code here:
	}

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				ArrangeWaiter__ dialog = new ArrangeWaiter__(
						new javax.swing.JFrame(), true);
				dialog.addWindowListener(new java.awt.event.WindowAdapter() {
					public void windowClosing(java.awt.event.WindowEvent e) {
						System.exit(0);
					}
				});
				dialog.setVisible(true);
			}
		});
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	protected static javax.swing.JButton jButton1;
	private javax.swing.JScrollPane jScrollPane1;
	protected javax.swing.JTable jTable1;
	// End of variables declaration//GEN-END:variables

}